import React from 'react'
import {
    HashRouter,
    Switch,
    Route
} from 'react-router-dom'
import CartList from '../component/cartList'
import Cart from '../component/cart'

class Router extends React.Component {
    render() {
        return (
            <HashRouter>
                <Switch>
                    <Route path="/cart" component={Cart} />
                    <Route path="/" component={CartList} />
                </Switch>
            </HashRouter>
        )
    }
}

export default Router